using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using DG.Tweening;
using AppEventUtils;
using AppSoldierState;


public class SoldierBattleController : MonoBehaviour
{
    public static SoldierBattleController instance;

    private void Awake()
    {
        if (instance != null)
            Destroy(this);
        instance = this;
    }

    public Transform soldier_parent;
    public Transform card_parent;
    public Transform enemy_parent;
    public List<SoldierController> soldiers = new List<SoldierController>();
    
    void Start()
    {
        for (var i = 0; i < soldier_parent.childCount; i++)
        {
            soldiers.Add(soldier_parent.GetChild(i).GetComponent<SoldierController>());
        }
    }

    IEnumerator start_fight()
    {
        while (!GameController.instance.is_ready)
        {
            yield return new WaitForSeconds(0.1f);
        }
        
        yield return null;
    }

    void Update()
    {
    }
}
